package Adapter;

import java.util.ArrayList;
import java.util.List;
import DomainPackage.*;
import Sistem.*;
public class PilotAdapter {

	public static List<Pilot> getAllPilot(){
        List<Object> objectList = Register.getAll(Pilot.class);
        //as all getAll functions, we have to cast to according class
        List<Pilot> pilotList = new ArrayList<Pilot>();
        for(Object temp:objectList){
                pilotList.add((Pilot)temp);
        }
        return pilotList;
	}
}
